package com.singleton;

/**
 * 优点：执行效率高，性能高，没有任何的锁
 * 缺点：某些情况下，可能会造成内存浪费
 * @author:         cong zhi
 * @createDate:     2022/4/23 11:37
 * @updateUser:     cong zhi
 * @updateDate:     2022/4/23 11:37
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
public class HungrySingleton {


    private static final HungrySingleton HungrySingleton =new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getInstance() {
        return HungrySingleton;
    }
}
